package com.designPattern.proxy;

/**
 * 玩家Lily
 * @author : liutianlong
 * @date : 2023/5/25
 * @since : 1.0
 */
public class LilyPlayer implements IPlayer{

    private String name;

    public LilyPlayer(String name) {
        this.name = name;
    }

    @Override
    public void login() {
        System.out.println(String.format("%s 登录成功",this.name));
    }

    @Override
    public void play() {
        System.out.println(String.format("%s 游戏中",this.name));
    }
}
